﻿<Window x:Class="InseSoft.Views.TipoCambioWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:viewModels="clr-namespace:InseSoft.ViewModels" xmlns:local="clr-namespace:InseSoft.Models.Entities"
        mc:Ignorable="d"
        Width="400" 
        Height="210"
        ResizeMode="NoResize"
        Title="Tipo de Cambio"
        Icon="/Images/Mantenimiento.ico"
        WindowStartupLocation="CenterScreen"
    >
    <Window.Resources>
        <Style TargetType="Label">
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Height" Value="23" />
        </Style>
        <Style TargetType="Button">
            <Setter Property="Height" Value="25" />
            <Setter Property="Width" Value="80" />
            <Setter Property="HorizontalAlignment" Value="Right" />
            <Setter Property="Margin" Value="10" />
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Stretch" />
            <Setter Property="Foreground" Value="Navy" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="FontSize" Value="10pt" />
        </Style>
    </Window.Resources>
    <StackPanel d:DataContext="{d:DesignInstance {x:Type viewModels:BaseCatalogEntityViewModel}}">
        <StackPanel Background="Ivory">
            <TextBlock Margin="6">
            No se ha definido el tipo de cambio del colón con respecto al dólar estadounidense para hoy
            </TextBlock>
        </StackPanel>
        <Grid Margin="15" HorizontalAlignment="Center" d:DataContext="{d:DesignInstance {x:Type local:TipoCambio}}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="100" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="27" />
                <RowDefinition Height="27" />
            </Grid.RowDefinitions>
            <Label Content="Tipo de cambio" Grid.Row="0" />
            <Label Grid.Column="1" FontWeight="Bold" Content="{Binding Path=Monto}" />
            <TextBox Grid.Column="1" Grid.ColumnSpan="4" Width="100" VerticalAlignment="Center" HorizontalAlignment="Left" MaxLength="50" Text="{Binding Path=Monto, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"/>
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Aceptar" Command="{Binding SaveCommand}"/>
            <Button Content="Cancelar" Command="{Binding ExitCommand}"/>
        </StackPanel>
    </StackPanel>
</Window>